/*
 * serialization.h
 *
 *  Created on: 19 nov. 2011
 *      Author: arthur
 */

#ifndef SERIALIZATION_H_
#define SERIALIZATION_H_

#include "image.h"
#include <QList>
#include <stdio.h>
#include <string>
#include <sstream>

void serializeImages(QList<Image> images, string fichier);
void serializeHistogrames(Image image, FILE * fp);
void serializeUnHistograme(float * histograme, FILE * fp);

QList<Image> deserializeImages(string fichier);
void deserializeUneImage(FILE * fp, Image * image);
void deserializeUnHistograme(FILE * fp, float * histo);
void deserialiseUneChaineAvecCaracteredeFin(char * in, char * out, int start, int maxIn,
		int maxOut, char fin);

#endif /* SERIALIZATION_H_ */
